package Demo01;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-03-31
 * Time: 14:38
 */
public class Son extends Father{
    int c = 10;
    int d = 20;
    public void max() {
        this.eat();
        sleep();
        setB(20);
        System.out.println(getB());
    }
}
